BIN=processbar
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)
RM=rm -f

$(BIN):$(OBJ)
	@gcc -o $@ $^
	@echo "Linking --- $@ to $^"

%.o:%.c
	@gcc -c $<
	@echo "compling --- $< to $@"

.PHONY:clean
clean:
	@$(RM) $(OBJ) $(BIN)
	@echo "remove --- $(OBJ) $(BIN)"
